package com.hzbank.generate.util;

import com.alibaba.druid.util.StringUtils;

import java.util.Random;

public class TestStringUtils {
    public static void main(String[] args) {

        Random random = new Random();
        int a = random.nextInt(2);
        //String year1 = String.format("%02d", year);
        String b = "202"+ a;
        if( b instanceof String){
            System.out.println("b类型为String");
        }
        if (b instanceof CharSequence){
            System.out.println("b类型也为CharSequence");
        }
        b = null;
        boolean empty = StringUtils.isEmpty(b);
        System.out.println("b是否为空：" + empty);

    }
}
